﻿@using Orchard.ContentManagement

@{
    ContentItem contentItem = Model.ContentItem;
}

<section data-ng-controller="GeneralViewCtrl">
    <header id="page-title">
        <h1 class="pull-left">@Html.ItemDisplayText(contentItem) <span>view&nbsp;a&nbsp;data</span></h1>
    </header>
    <section id="main-content">
        <div id="page-actions" class="clearfix">
            <btn-actions>
                <button class="btn btn-small" ng-click="exit()">Back</button>
                <button class="btn btn-small" ng-click="edit()">
                    <i class="icon-edit"></i>&nbsp;Edit
                </button>
            </btn-actions>
        </div>

        <div class="row-fluid">
            <section class="view-mode span12">
                @{ Output.Write(Model.Layout); }
            </section>
        </div> 
        
        @Display(Model.Content)

@*        <section class="row-fluid related-list">
            <header>
                <h5>History</h5>
            </header>
            <div class="gridStyle" data-ng-grid="historiesOptions"></div>
        </section>*@
    </section>
</section>

<script>
    $(function () {
        $('.page-actions').affix({ offset: { top: 71 } });
    });
</script>
